public class testmain {
    public static void main(String[] args) {
        Thread thread1 = new Thread(()-> {
            while (true) {
                try {
                    System.out.println("做题！！！");
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        Thread thread2 = new Thread(()-> {
            while (true) {
                try {
                    System.out.println("必过！！！");
                    Thread.sleep(100);
                } catch (InterruptedException e) {
                    throw new RuntimeException(e);
                }
            }
        });
        thread1.start();
        thread2.start();
    }
}
